package ooday03;

import java.util.ArrayList;
import java.util.Collections;

//  2. 实现达内员工管理系统的设计
public class Test2 {
    public static void main(String[] args) {
        TechnicalDirector t1 = new TechnicalDirector("黄成", 45, 25000.0);
        Lecturer l1 = new Lecturer("武宣", 35, 12000.0);
        ProjectManager p1 = new ProjectManager("田庄", 38, 15000.0);
        Teacher t2 = new Teacher("吴欢", 32, 11000.0);
        ArrayList<Employee> list = new ArrayList<>();
        Collections.addAll(list, t1, l1, p1, t2);
        for (int i = 0; i < list.size(); i++) {
            list.get(i).workDone();
        }
        t1.edit();
        l1.solve();
        l1.train();
    }
}
